package com.nb82.core;

import java.util.HashMap;
import java.util.Map;

import com.nb82.bean.im.ImService;

public class BeanFactoryControll {
	private static  BeanFactoryControll beanFactoryControll;
	
	private static Map<String, Object> beans = new HashMap<String, Object>();
	private static  void registBean(){
		ImService imService = new ImService();
		beans.put("imService", imService);
	}
	private BeanFactoryControll() {
		registBean();
	}
	public static BeanFactoryControll getInstance(){
		return beanFactoryControll == null ? new BeanFactoryControll(): beanFactoryControll;
	}
	
	public Map<String, Object> getBeans() {
		return beans;
	}
	
	
}
